<?php

namespace app\validate;

use share\validate\SceneValidate;

class SendConfigValidate extends SceneValidate{
    protected $rule = [ 
        'id' => 'require',      
        'name' => 'require',
        'appid' => 'require',
        'app_sceret' => 'require',
        'type' => 'require|integer',
        'ext' => 'length:0,600'
    ];  
    
    protected $sceneRules = [
        'list' => [
            'appid' => 'length:1,30',
            'name' => 'name:1,30',
            'type' => 'integer',
        ],
    ];
  

    protected $scene = [      
        'set' => ['id','appid','type','name','app_sceret','ext'],
        'list' => ['appid','type','name'],
        'del' => ['id'],
    ];
}